<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Document</title>
	<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
	<link rel="stylesheet" type="text/css" href="css/style.css">
	<script type="text/javascript" src="confirm.js"></script>
	<script type="text/javascript" src="compage.js"></script>
</head>
<body>
	
	<input type="button" value="按钮" id="btn" />
	</br>
	</br>
	</br>
	</br>
	</br>
	<input type="button" value="按钮2" id="btn2" />
	</br>
	</br>
	</br>
	</br>
	</br>
	</br>
	<input type="button" value="按钮3" id="btn3" />
	</br>
	</br>
	</br>
	</br>
	</br>
	<input type="button" value="按钮4" id="btn4" />
	</br>
	</br>
	</br>
	</br>
	</br>
	<input type="button" value="按钮5" id="btn5" />
	</br>
	</br>
	</br>
	</br>
	</br>
	<input type="button" value="按钮6" id="btn6" />
	</br>
	</br>
	</br>
	</br>
	</br>
	</br>
	</br>
	<script type="text/javascript">
		$(function(){
		/*
			var options = {
					 popupStyle: '',  //空或success或failure
					 title: '',    //提示标题
					 titleClass: '',   //标题样式class 
					 btnYesText: "",	//确定按钮自定义text
					 btnYesClass: "",  //确定按钮自定义样式class
					 btnNoText: "",   //取消按钮自定义text
					 btnNoClass: "",  //取消按钮自定义样式class
					 noBtnHide: ,	//取消按钮是否不显示
					 msg: ""	 //提示语
					};*/

			$("#btn").click(function() {
				  $.enameConfirm(function(msg) {
				});
			});

			$("#btn2").click(function() {
				var options = {
					 popupStyle:'',
					 noBtnHide: true,
					 title: '我是你的优乐美',    //提示标题
					 titleClass: 'mytitle',   //标题样式class 
					 btnYesText: "删除吗",	//确定按钮自定义text
					 btnYesClass: "mybtn",  //确定按钮自定义样式class
					 btnNoText: "不删除吗",   //取消按钮自定义text
					 btnNoClass: "nobtn",  //取消按钮自定义样式class
					 msg: "真的是够了"	 //提示语
					};
				 $.enameConfirm(options, function(msg) {
				 	if(msg) {
					} else if(!msg) {
					}
				});

			});

			$("#btn3").click(function() {
				var options = {
					 popupStyle: 'failure'
					};
				 $.enameConfirm(options, function(msg) {
					if(msg) {
					} else if(!msg) {
					}
				});
			});

			$("#btn4").click(function() {
				var options = {
					 popupStyle: 'failure',
					 noBtnHide: true
					};
				 $.enameConfirm(options, function(msg) {
					if(msg) {
					} else if(!msg) {
					}
				});
			});

			$("#btn5").click(function() {
				var options = {
					 popupStyle: 'success'
					};
				 $.enameConfirm(options, function(msg) {
					if(msg) {
						//console.log("是的，确定");
					} else if(!msg) {
						//console.log("是的，取消");
					}
				});
			});

			$("#btn6").click(function() {
				var options = {
					 popupStyle: 'success',
					  noBtnHide: true
					};
				 $.enameConfirm(options, function(msg) {
					if(msg) {
						//console.log("是的，确定");
					} else if(!msg) {
						//console.log("是的，取消");
					}
				});
			});
		})
	</script>
</body>
</html>